@general-padding: 1.2rem;
@small-padding: 0.5rem;

@table-zebra-dark-color: fade(@primary-color, 5%);

// 要覆写的Ant Design样式
.zebra-table {
  tr.ant-table-row:nth-child(even) {
    background-color: @table-zebra-dark-color;
  }
}

.no-border-table .ant-table-small {
  border: none;
}
.no-border-table .ant-table-thead > tr > th, .no-border-table .ant-table-tbody > tr > td {
  border-right: none;
}

.inner-table {
  margin-top: 20px;
  .ant-form-item {
    margin-bottom: 0;
  }
  .ant-table-body {
    margin: 0 !important;
    th, td {
      padding: 4px 8px !important;
    }
  }
}

.general-padding, .table-list-warp {
  margin: @general-padding;

  .operation-btn-container {
    margin: @general-padding 0;
  }
}

.d1-col-form {
  .ant-row {
    display: inline-block;
  }
}
.d2-col-form {
  .ant-row {
    display: inline-block;
  }

  .ant-form-item {
    width: 50%;
  }
}

.user-info-centered {
  max-width: 500px;
  margin: auto;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}
